﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using DAL;

namespace BUS
{
    public class BUS_ChiTietHoaDon
    {
        public DataTable showchitietHD()
        {
            DAL_ChiTietHoaDon dao = new DAL_ChiTietHoaDon();
            return dao.showchitietHD();
        }
        public void insertchitietHD(string mhd, string mmh, string dg, string sl)
        {
            DAL_ChiTietHoaDon dao = new DAL_ChiTietHoaDon();
            dao.insertchitietHD(mhd,mmh,dg,sl);
        }
        public void UpdatechitietHD(string mhd1, string mhd, string mmh, string dg, string sl)
        {
            DAL_ChiTietHoaDon dao = new DAL_ChiTietHoaDon();
            dao.UpdatechitietHD(mhd1, mhd, mmh, dg, sl);
        }

        public void DeletechitietHD(string mhd_d)
        {
            DAL_ChiTietHoaDon dao = new DAL_ChiTietHoaDon();
            dao.DeletechitietHD(mhd_d);
        }
    }
}
